package com.example.plat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.plat.enity.Activity;
import com.example.plat.enity.Schedule;
import com.example.plat.enity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {

    void uploadImage(Long actId, String imageUrl);

    void deleteImage(Long actId);

    void updateActivity(String title, String category, String content, String place,
                        Long placeId, String time, Integer numOfPerson, String photo, Long actId);

    Integer isJoin(Long userId, Long actId);

    void updateParticipation(Long actId);

    void cancepParticipation(Long actId);

    void joinActivity(Long userId, Long actId);

    void cancelJoin(Long userId, Long actId);

    void collect(Long userId, Long actId);

    void cancleCollect(Long userId, Long actId);

}
